package cn.zz.veggie.application.helper;

import cn.zz.comm.exception.classes.RecordNotFoundException;
import cn.zz.veggie.model.domain.Shop;

/**
 * @author zhongq
 * @since 2024/7/28
 */
public class ShopHelper {

	public static void requireValid(Shop shop, Integer id) {
		if (shop == null || shop.checkIsDelete()) {
			throw new RecordNotFoundException(id);
		}
	}
}